WeDevs\Dokan\Commission\OrderCommission A

Total Complexity 53
Dependencies 4
Dependents 5
Total lines 492
Lines of code 205
Logical lines of code 105
Comment lines 211
Methods 29
Properties 3

Methods 29

Method Rating Maintainability Complexity Lines of code
calculate_for_refund()
S
49 5 30
calculate()
S
46 4 39
get_dokan_gateway_fee()
S
61 4 11
get_admin_gateway_fee()
S
67 3 7
get_vendor_gateway_fee()
S
67 3 7
get_total_shipping_tax_refunded()
S
78 2 3
get_shipping_refunded()
S
79 2 3
get_vendor_tax_fee()
S
69 2 6
get_vendor_shipping_tax_fee()
S
70 2 6
get_vendor_shipping_fee()
S
70 2 6
get_admin_shipping_tax_fee()
S
70 2 6
get_admin_tax_fee()
S
69 2 6
get_admin_shipping_fee()
S
70 2 6
get_tax_refunded()
S
69 2 6
ensure_commissions_are_calculated()
S
75 2 5
get_data()
S
63 1 11
get_all_line_item_commissions()
S
77 1 4
get_vendor_total_earning()
S
81 1 3
get_admin_total_earning()
S
81 1 3
get_admin_commission()
S
80 1 3
get_order()
S
82 1 3
get_commission_for_line_item()
S
75 1 4
reset_order_commission_data()
S
70 1 7
additional_adjustments()
S
82 1 3
set_order()
S
77 1 4
get_total_admin_fees()
S
78 1 3
get_vendor_earning()
S
80 1 3
get()
S
77 1 4
get_total_vendor_fees()
S
78 1 3